package com.example.common.network;

import com.example.common.model.MyResponse;

import java.io.File;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;

import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface FileReq {

    @Multipart
    @POST("oss")
    Call<MyResponse<String>> uploadFile(@Part MultipartBody.Part file, @Header("authorization") String token);
}
